<template>
  <!-- 一级路由 挂载点 一般写在 App.vue 中 -->
  <div>
    <van-nav-bar :title="this.$route.meta.title" fixed />

    <router-view></router-view>

    <van-tabbar route>
      <van-tabbar-item replace to="/layout/home" icon="home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item replace to="/layout/search" icon="search"
        >标签</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeTitle: this.$route.meta.title,
    };
  },

  // watch: {
  //   $route() {
  //     this.activeTitle = this.$router.meta.title;
  //   },
  // },
};
</script>

<style></style>
